import request from '@/utils/request'

const basePath = '/jpower-system'

export function getList(params) {
  return request({
    url: basePath + '/core/client/list',
    method: 'get',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}

export function delClient(ids) {
  return request({
    url: basePath + '/core/client/delete',
    method: 'delete',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params: { ids }
  })
}

export function updataClient(params) {
  return request({
    url: basePath + '/core/client/save',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
